package com.colabo.j2ee.web.oaf.orgnization.util;

import com.colabo.j2ee.web.core.context.ContextUtil;
import com.colabo.j2ee.web.oaf.orgnization.IPositionService;
import com.colabo.j2ee.web.oaf.orgnization.IRoleService;
import com.colabo.j2ee.web.oaf.orgnization.IStaffService;
import com.colabo.j2ee.web.oaf.orgnization.IUnitService;

public class OrgServiceFactory {
	private static final String BEAN_ID = "orgServiceFactory";
	private IUnitService unitService;
	private IRoleService roleService;
	private IPositionService positionService;
	private IStaffService staffService;

	public static final OrgServiceFactory getInstance() {
		return (OrgServiceFactory) ContextUtil.getBean(BEAN_ID);
	}

	public IUnitService getUnitService() {
		return unitService;
	}

	public void setUnitService(IUnitService unitService) {
		this.unitService = unitService;
	}

	public IRoleService getRoleService() {
		return roleService;
	}

	public void setRoleService(IRoleService roleService) {
		this.roleService = roleService;
	}

	public IPositionService getPositionService() {
		return positionService;
	}

	public void setPositionService(IPositionService positionService) {
		this.positionService = positionService;
	}

	public IStaffService getStaffService() {
		return staffService;
	}

	public void setStaffService(IStaffService staffService) {
		this.staffService = staffService;
	}
}